package com.hanamaki.oop.demo09.extends_car;

public class Application {

    public static void main(String[] args) {

        // 父类的引用指向了子类
        Car car = new Car("宝马", 2);

        Bus bus = new Bus();
        Double aDouble = bus.renPrice("", 15, 2);
        System.out.println("您租赁的车型座位数量为：" + 15 +
                ",日租价为：" + bus.dayRentMoney +
                ",租赁天数为：" + 2 +
                ",总的租赁价为：" + aDouble);



    }
}
